<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@include file="/page/common/public.jspf"%>
<!DOCTYPE HTML>
<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type" />
<meta content="max-age=0" http-equiv="Cache-Control" />
<meta content="width=device-width; initial-scale=1.2; minimum-scale=1.0; maximum-scale=2.0" name="viewport" />
<meta content="telephone=no" name="format-detection" />
<meta content="240" name="MobileOptimized" />
<title>站内消息</title>
<script type="text/javascript" src="${path }/js/jquery-1.4.2.min.js"></script>
<link href="${skin }/css/public.css" rel="stylesheet" type="text/css" />
<link href="${skin }/css/style.css" rel="stylesheet" type="text/css" />
<script type="text/javascript">
function lookMessage(mid)
{
	if($("#"+mid).is(":hidden"))
	{
		$('#'+mid).show();
		$('#'+mid+'Title').attr('class', 'list_item active unread ui_color_gray');
	}
	else
	{
		$('#'+mid).hide();
		$('#'+mid+'Title').attr('class', 'list_item unread ui_color_gray');
	}
	
}
</script>
</head>

<body>
	<c:import url="/page/common/head.jsp">
		<c:param name="type">wdcp</c:param>
	</c:import>
	<div class="kj_content">
		<div class="tz_title center s_16">站内消息</div>
		<ul class="fn_news_unread ui_list list_rich ui_textlist ui_corner ui_mb10 mt_20">
			<c:forEach items="${messageList }" var="message">
				<li id="${message[0] }Title" class="list_item unread ui_color_gray" onClick="lookMessage(${message[0] });">
					<a class="news_title ui_color_gray s_14" href="javascript:void(0)">${message[1] }</a>
					<span class="news_date color_999">
						<fmt:formatDate value="${message[4] }" pattern="yyyy-MM-dd"/>
					</span>
				</li>
				<li id="${message[0] }" class="item_extend active s_14" style="display:none">
					${message[2] }	
				</li>
			</c:forEach>
		</ul>
	</div>
	<c:import url="/page/common/bottom.jsp"></c:import>
</body>
</html>
